package com.代理模式.动态代理;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/3/1 9:24
 * @description:
 * @version:
 */
//实现类2
public class Doctor implements Person {
    private String name;
    public Doctor() {
    }
    public Doctor(String name) {
        this.name = name;
    }
    @Override
    public void wakeup() {
        System.out.println("医生"+name+"早晨醒来啦");
    }
    @Override
    public void sleep() {
        System.out.println("医生"+name+"晚上睡觉啦");
    }
}

